import request from '@/utils/request'

export function buyer_index(params) {
  return request({
    url: '/buyer/index',
    method: 'get',
    params
  })
}

export function buyer_add(data) {
  return request({
    url: '/buyer/add',
    method: 'post',
    data:data
  })
}

export function buyer_edit(data) {
  return request({
    url: '/buyer/edit',
    method: 'post',
    data:data
  })
}

export function buyer_delete(data) {
  return request({
    url: '/buyer/delete',
    method: 'post',
    data:data
  })
}

export function buyer_changeStatus(data) {
  return request({
    url: '/buyer/changeStatus',
    method: 'post',
    data:data
  })
}
